import QtQuick
import QtQuick3D

Node {
    id: node

    // Resources
    property url textureData: "maps/textureData.png"
    Texture {
        id: tex_TemplateWorld_RGB_png_texture
        pivotU: 0.5
        pivotV: 0.5
        positionV: -1
        generateMipmaps: true
        mipFilter: Texture.Linear
        source: node.textureData
    }
    Texture {
        id: tex_TemplateWorld_RGBA_png_texture
        pivotU: 0.5
        pivotV: 0.5
        positionV: -1
        generateMipmaps: true
        mipFilter: Texture.Linear
        source: "maps/TemplateWorld-RGBA.png"
    }
    PrincipledMaterial {
        id: dropper_material
        baseColorMap: tex_TemplateWorld_RGB_png_texture
    }
    PrincipledMaterial {
        id: brewing_Stand_material
        baseColorMap: tex_TemplateWorld_RGBA_png_texture
    }

    // Nodes:
    Node {
        id: rootNode
        Node {
            id: root
            Model {
                id: table
                source: "meshes/table.mesh"
                materials: dropper_material
            }
            Model {
                id: playerChair
                x: -50
                y: 450
                z: 400
                source: "meshes/playerChair.mesh"
                materials: dropper_material
            }
            Model {
                id: brewing
                source: "meshes/brewing.mesh"
                materials: dropper_material
                Model {
                    id: brewing_alpha
                    source: "meshes/brewing_alpha.mesh"
                    materials: brewing_Stand_material
                }
            }
            Model {
                id: dealerChair
                x: -50
                y: 450
                z: -100
                rotation: Qt.quaternion(1.91069e-15, 4.37114e-08, 1, 4.37114e-08)
                source: "meshes/dealerChair.mesh"
                materials: dropper_material
            }
            Node {
                id: pistonNode
                x: 50
                y: 400
                z: 150
                Model {
                    id: piston
                    rotation: Qt.quaternion(0.707107, 0.707107, 0, 0)
                    source: "meshes/piston.mesh"
                    materials: dropper_material
                    Model {
                        id: dropper
                        y: 2.842170943040401e-14
                        z: -50
                        rotation: Qt.quaternion(0.5, -0.5, 0.5, -0.5)
                        source: "meshes/dropper.mesh"
                        materials: dropper_material
                    }
                }
            }
        }
    }

    // Animations:
}
